/*---------------------------------------------------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Copyright (C) 2019-2023 OpenFOAM Foundation
     \\/     M anipulation  |
-------------------------------------------------------------------------------
License
    This file is part of OpenFOAM.

    OpenFOAM is free software: you can redistribute it and/or modify it
    under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    for more details.

    You should have received a copy of the GNU General Public License
    along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.

\*---------------------------------------------------------------------------*/

inline Foam::scalar Foam::liquid::rho(scalar p, scalar T) const
{
    return rho_->value(T);
}


inline Foam::scalar Foam::liquid::pv(scalar p, scalar T) const
{
    return pv_->value(T);
}


inline Foam::scalar Foam::liquid::hl(scalar p, scalar T) const
{
    return hl_->value(T);
}


inline Foam::scalar Foam::liquid::Cp(scalar p, scalar T) const
{
    return Cp_->value(T);
}


inline Foam::scalar Foam::liquid::hs(scalar p, scalar T) const
{
    return ha(p, T) - hf();
}


inline Foam::scalar Foam::liquid::hf() const
{
    return hf_;
}


inline Foam::scalar Foam::liquid::ha(scalar p, scalar T) const
{
    return h_->value(T);
}


inline Foam::scalar Foam::liquid::Cpg(scalar p, scalar T) const
{
    return Cpg_->value(T);
}


inline Foam::scalar Foam::liquid::B(scalar p, scalar T) const
{
    return B_->value(T);
}


inline Foam::scalar Foam::liquid::mu(scalar p, scalar T) const
{
    return mu_->value(T);
}


inline Foam::scalar Foam::liquid::mug(scalar p, scalar T) const
{
    return mug_->value(T);
}


inline Foam::scalar Foam::liquid::kappa(scalar p, scalar T) const
{
    return kappa_->value(T);
}


inline Foam::scalar Foam::liquid::kappag(scalar p, scalar T) const
{
    return kappag_->value(T);
}


inline Foam::scalar Foam::liquid::sigma(scalar p, scalar T) const
{
    return sigma_->value(T);
}


inline Foam::scalar Foam::liquid::D(scalar p, scalar T) const
{
    return D_->value(T);
}


inline Foam::scalar Foam::liquid::D(scalar p, scalar T, scalar Wb) const
{
    // Currently ignoring the Wb argument
    return D_->value(T);
}


// ************************************************************************* //
